/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.integralorders.entity;

import com.jeeplus.modules.member.entity.Member;
import com.jeeplus.modules.pointslottery.entity.PointsLottery;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 积分订单Entity
 * @author w
 * @version 2021-03-11
 */
public class IntegralOrders extends DataEntity<IntegralOrders> {
	
	private static final long serialVersionUID = 1L;
	private Member member;		// 购买用户
	private String prizeFlag;		// 是否中奖（0否1是）
	private String orderNo;		// 编号
	private String orderStatus;		// 订单状态
	private String expressName;		// 快递名称
	private String expressNo;		// 快递编号
	private String address;		// 收货地址
	private Double money;		// 花费积分
	private Integer buyAmount;		// 购买份数
	private String isEnd;		// 是否开奖(0否1是)
	private PointsLottery pointLottery;		// 购买商品
	
	public IntegralOrders() {
		super();
	}

	public IntegralOrders(String id){
		super(id);
	}

	@ExcelField(title="购买用户", fieldType=Member.class, value="member.loginName", align=2, sort=1)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="是否中奖（0否1是）", dictType="yes_no", align=2, sort=2)
	public String getPrizeFlag() {
		return prizeFlag;
	}

	public void setPrizeFlag(String prizeFlag) {
		this.prizeFlag = prizeFlag;
	}
	
	@ExcelField(title="编号", align=2, sort=3)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@ExcelField(title="订单状态", align=2, sort=4)
	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	@ExcelField(title="快递名称", align=2, sort=5)
	public String getExpressName() {
		return expressName;
	}

	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}
	
	@ExcelField(title="快递编号", align=2, sort=6)
	public String getExpressNo() {
		return expressNo;
	}

	public void setExpressNo(String expressNo) {
		this.expressNo = expressNo;
	}
	
	@ExcelField(title="收货地址", align=2, sort=7)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@ExcelField(title="花费积分", align=2, sort=8)
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	@ExcelField(title="购买份数", align=2, sort=15)
	public Integer getBuyAmount() {
		return buyAmount;
	}

	public void setBuyAmount(Integer buyAmount) {
		this.buyAmount = buyAmount;
	}
	
	@ExcelField(title="是否开奖(0否1是)", dictType="yes_no", align=2, sort=16)
	public String getIsEnd() {
		return isEnd;
	}

	public void setIsEnd(String isEnd) {
		this.isEnd = isEnd;
	}
	
	@ExcelField(title="购买商品", fieldType=PointsLottery.class, value="pointLottery.integralName", align=2, sort=17)
	public PointsLottery getPointLottery() {
		return pointLottery;
	}

	public void setPointLottery(PointsLottery pointLottery) {
		this.pointLottery = pointLottery;
	}
	
}